# -*- coding: utf-8 -*-
# @Author  : BoPo
# @Time    : 2021/12/7 16:55
# @Function:

import sys

import click

from sw2py.swagger import Swagger


@click.command()
@click.option('-o', '--output', default='output')
@click.option('-s', '--suitcase', default='')
@click.argument('filename', type=click.Path())
def main(filename, suitcase, output):
    Swagger(filename).export(output, suitcase)


if __name__ == "__main__":
    sys.exit(main())
